this._favoritesArea = new WellArea(width, true);
this._favoritesArea.connect('activated', Lang.bind(this, function (a, display) {
- this.emit('activated');
+ Main.overlay.hide();
}));
this.actor.append(this._favoritesArea.actor, Big.BoxPackFlags.NONE);
padding_top: GenericDisplay.PREVIEW_BOX_PADDING });
this._runningArea = new WellArea(width, false);
this._runningArea.connect('activated', Lang.bind(this, function (a, display) {
- this.emit('activated');
+ Main.overlay.hide();
}));
this._runningBox.append(this._runningArea.actor, Big.BoxPackFlags.EXPAND);
this.actor.append(this._runningBox, Big.BoxPackFlags.NONE);
this._redisplay(true);
},
- // Launches the item that is currently selected and emits 'activated' signal.
+ // Launches the item that is currently selected, closing the overlay
activateSelected: function() {
if (this._selectedIndex != -1) {
let selected = this._findDisplayedByIndex(this._selectedIndex);